/*
 * @Descripttion: 
 * @Author: ziwei
 * @Date: 2022-07-06 14:34:58
 * @LastEditors: ziwei
 * @LastEditTime: 2022-07-06 14:39:32
 */
export {}

//泛型 基础类型 兼容性判断
interface Empty<T>{
    data:T
}

let x!:Empty<string> //{data:string}
let y!:Empty<number> //{data:number}
//x=y

//枚举兼容性:数字和枚举是兼容的
enum Colors{Red,Yellow}
let c:Colors;
c = Colors.Red;
c=1
let n:number
n=1
n=Colors.Red